package com.geoserver.dao;

import com.geoserver.entity.TreeInfo;
import com.geoserver.entity.TreeName;
import org.apache.ibatis.annotations.Mapper;

import java.util.ArrayList;

/**
 * FileName: TreeInfoDao
 * Create by fengzheng on 2019/4/20 2:07
 * Description: 树木信息操作
 */

@Mapper
public interface TreeInfoDao {

    /**
     * 查找树木名字
     */
    ArrayList<TreeName> findTreeName(int ID)throws Exception;

    /**
     * 查找树木详细信息
     */
    ArrayList<TreeInfo> findTreeInfo(String treeName)throws Exception;


    /**
     * 查询有多少树木
     */
    int countTreeNum()throws Exception;
}
